function reset() {
	$("#phone").val("");
	$(".table").empty();
}

function Search() {
	var customerCellphone = $("input[name='customerCellphone']").val();
	var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
	    
		  $.ajax({
			cache : true,
			type : "GET",
			dataType : 'json',
			url : ctx + "module/customerClue/queryPhone",
			data : {
				"customerCellphone" : customerCellphone,
			},
			async : false,
			error : function(request) {
				$.modalAlert("系统错误", "error");
			},
			success : function(data) {
				if (data != null) {
					var item;
					item = "<tr><td>姓名:"+data.name+"</td>" +
							"<td>手机号码:"+data.cellphone+"</td>" +
							"<td>年龄:"+data.age+"</td>" +
							"<td>身份证:"+data.identityNum+"</td>" +
							"<td><a href='add?customerId="+data.customerId+"'>选用</a></td></tr>";
					$('.table').html(item);
				} else {
					var item;
					item = "<tr><td>改手机号号码还没被录入,是否创建用户<a href='add'>添加客户信息模板</a></td></tr>";
					$('.table').html(item);
				}
			}
		});
	  
}
         
  
